
$(document).ready(function()
{
    // fill form inputs with their labels ;
    $('#edit-name').val($('label[@for=edit-name]').text());
    $('#edit-name').focus(function(){
        $('#edit-name').val('');
    });

    // hide the password field and replace it by a text field.
    $('#edit-pass').hide(0);
    $('.form-type-password').append('<input id="edit-pass-text" type="text" />');
    $('#edit-pass-text').val($('label[@for=edit-pass]').text());
    $('#edit-pass-text').css('width', 120);

    $('#edit-pass-text').focus(function(){
        $(this).remove();
        $('#edit-pass').show(0);
        $('#edit-pass').val('');
        $('#edit-pass').focus();
    });

    
});